printing values, but no response in view