making the default controller reusable in the front part too