adding code to clear the new card form when it's closed