add function(favorite stations) and history and refactoring