fix some bugs with selected and kill button