Prevent tab change when saving settings