Main View Logic Finished