captive: Refactor the access page