PR for code review

You can move setSpinners(isEdit) outside the if-else statement since both cases use this function