Took the listener class out. An interface called IView already implements its functionality and not class was implementing listener.