reworking template to suit our GUI