Add Enable/Disable behaviour of open file.