fixed issue where layout wasnt applying to all pages