removed state from controller