Added layout links (with routs)
Updated files for working with rails 4