own handler for key whel and link events and function for slide and switch