state_machine added
controllers for admin&user