Add listeners for options page, add tests for options