updated main ctrl