more backend changes, refactored link_to helpers