Added some complicated IFs to hide pages and draft