added functionality to query automatically for rooms available and to submit forms to send a message