add logout func to admin page