fixed infinit load when no saved tabs
added comments for methods