Implemented loading of pages through ajax for upload photo