adding theme assets and converting template to rails layout