Refactor user template grid