added some functionality to update focus in selection table to the first element on new selection. Change also made to the plugin to account.