add handler for hover&click