fixes some bugs
adds delete cat button (only for owner) and optimizations