changed layout and added JS