Moved numbaturl variable to its own file
Fixed some bugs in the form preview page