placed the photo upload form in a conditional footer