Fix gel qc

Resets the page and restart it in case of bed verification or bed recording failure.
Refactor of code.