Added possibility to check for switchActivity