add missing layout file - add state machine stuff