Return the messages channel
Adds the query function for tabs