added current weather refresh after background, and refactoring