Why isn't the restart button functioning properly?