changing directory structure to reflect front-end and back-end