changed function of new.onclick and brought it over to new-app.html