Implemented page refreshing.