Made it so the refresh only happens when length changes because it was having a bad effect elsewhere. Also worked on refactoring some of the javascript and made it so when you add a question it slides back to the previous page