Removed NO_HISTORY flag because it leads to looping switching between main activity and auth activity.
API calls which does not require authentication moved to another classes