fixing apply button for sdb