fixing bugs in getCodesByCalcId function; addad view codes to web. Project ready