added upload photopage
fixed a minor bug