cleaned up codeVIEW and codeCONTROLLER