Clearing the add new slide form

If the user enters informations when editing a presentation and then he cancels the edit and after that he wants to add a new presentation , the add new slide form will contain the informations about the presentation that its update was canceled. 
To fix the problem , I added a code which will clear the add form once it's shown to the user.