implement crud controller structure