added events for starting and finishing selecting