menu lua
and code supporting the function, for now its only for changing states