bar interaction with reactive variable