mainview fix and expend