slightly modified ionic template