added modal box code for messages