Added structure to open chat on button press