finished layout and functions for the menu animations and page flow.