Prototype method created for refreshing the app