updating theme option and changes on functions accordingly