fixed up layouts and model and css files according to rails 3 syntax