add setting page logic