Adds try-catch blocks in CRUD views to get rid of "must not throw an exception" error