to handle view 2