adds correct message sorting for client
updates templates to use blaze ui