pass in message thread
passing aroudn variables
added sidebar, will probably move it to a separate page