modal templates till you cry

switched from basename to name