Added main content notebook page enums.
Added doc strings
Check if window is created in shutdown handler