improved the class search
included an error div in classes search