made models and setting up the layouts for the frontend