update template to work better accross devises.