Make the error button functional