onBarButtonPressed handled on web side