changed layout, css styles, fixed some js