Refactor transition between SignActivity and MainActivity