added code to enable rails to receive new page layout