adds some comments to the nav controls function