Improve and debug the 'log' button in displayEDF