added create and delete functionality, also added reusable msg partial and logging