Minor refactoring
Added support for different pages
Added sample instant chat example