Added function to set page height