Refactors options page