added file upload and controller return varaibles to layout