model method to show only published pages