No, it needed to go in the refresh function