added getting files in controller