added new sheet option and added closing dialog