merge code main view