Fix bugs with checkboxes and search clear btn. Some error handlers in events and tasks. Refactoring