added selected and removed events. fixes #835