Handler for updating the UI + engine data