linking all of the pages together and image upload feature