add handler for take button