added a init function on the options menu