Refctored html code