checking active activity