adding refresh and loading