updated scope controller