Change behavior of apply button - Update #31

Apply button is now enabled/disabled instead of being visible/invisible.