move showStatus and showError and improve them