Modified frontend code.
Added functionality to CRUD categories.