HTML blocks not working properly