changed to .on for event handlers and fixed status message