refractored the code, now views/layouts/application contain everything the tabs