Bug fixes and optimization

-Fixed get id64 code to run better without errors (using trim instead of
substring etc.)
-Made refresh only happen if the user is changed