updated code some views