state_machine with ability, views fix