adding page layout fixed when errors appears