checked for gifs, and changed return page