restructured xmpp code + added 3 screen