use reverse() to resolve urls in views