improved front-end template design