create another when method for view 2