Handlers for AS user-interaction function