fix some bugs & finish basic function of option page
finish basic function of option page