refactor handle incoming online status to mainapp
added skeleton for chatwindow
basic chat functionality