uploadPhoto controller was not properly destroyed
keep variables only as local vars