to handle view 1