corrected nav path issue by using url template tag