Refactored

Removed on change event for sandbox checkbox since it was throwing an error in the background