added more events handling to linting and fixed bugs