Added proper css-based html code, took into account failure of