some changes to enable select the type of the sheet