data fetch logic implement on view