Fix delete button on message view, sort order for closed tickets