prevent double selecting on click