url links change with reverse function in templates and views