Implemented the right click menu on states.