Added if page option to admin js file