add front controller and some methods for add/edit/delete