presence handling for online offline states