added methods in taskmodel and categorypanelcontroller