fix controller so that loading status will not remain true