added seek event handling function.