added the blockMainViewWhenOpen property