implemented option menu to work with methods