set local variables instead of params in views
replace hard links by link_to links