Created method for refreshing interface