removed controller code from upload view