Refactoring exception + methods mouse event