JC: included state machine logx helper in application controller. Refectoring view file name.