refactored tamplate in planits directive to look more like HTML