added functionality to options page