refactor vendors templates, added identicons, added form macros for states