Made create, edit and delete reusable