provide mechanism also to hook apply button.