fixing add and edit question problems