wrote javascript to allow selection of messages from a list, added delete button