added more url_for  functions
changed code style