moved statuses to browser, dont run any logic if a timeout occurs (moved logic inside begin statement)