Debugging for why refreshAction is called multiple times as app is
used, comented out setTemp until problem is solved, added comments