minimize on exit and file download implemented as suggested by abhinav

preferences need to be set for weather app should exit or minimize on
exit