add base ctrler
fixed bug