added options page and finished the cycle