Changed layout and added ajax requests