linking pages together, chat app improved