changed UIbutton to view to hold graph