Main activity rewrite, record service update