Remove some unnecessary code and place the sheet at the right place