added create,edit,delete option, moved logic to controllers, routes updated