added frontend backend routes/views/controller logic