adds 7 day graph and buttons to switch between views