fix domain check logic in simple_cms nav tag, rewrite a few tags as assigments tags