Added a few validations for editQtnBtn, prevAddQtnBtn and some other stuff