worked on eventhandling and medium view