Change state function added.
Menu added.