btnKill functionality