verified that data('activeBlock') exists and added error handling
added events handler for ajax transaction to avoid blocking the application when an unespected error occours