optimize arrangement of the elements

mainly optimize the position of the elements but also fix some bad html
and unneeded css