Added tracking check for logout. Therefor refactored a bit of code. And had to temporarily create a temp window.seamapSync method for testing purposes