added more logic into card  view