updated apply button