fixing root directory for pages