Rearranging files to include front end and back end