added homepage controller and create folder and file functions to homepage