Apply button work only if it needed