added layout and updated related erb files accordingly