Created post and delete methods in the controller class and added new corresponding views