date picker function added to transaction view and model