Event and updateing moved inside EditMap class.