refactor object and function

refactor newQuestion object adding a new property. Refactor
editQuestion, saveEdit and cancelEdit functions.
place the edit pool and cancel buttons outside of the div that is
visible on multiple type