Altered chat query, now knows if chats are expanded or minimized.
Page relocation fixed to take into account user session navigation.