update main for view controls