pass correct scope for onShow