Refactor ajax dream controller

please rename to 'loadFile'