function for getting pagestyle paramter