Changed front end structure according to Rails