refucktoring layouts to link_to