fixed display not updated issue, improved error display