Implemented event system for the use in the MVC structure.