added layout and javascript