works on urls and views