update logout in cms_class.php