cleaned up url display conditions