updated edit view with date picker