Add console instructions
Add missing import
Remove onClose parameter.