worked on bugs after resize and medium view
refactored eventhandling
fixed reset after orientation change