Add action for View & fix XDate's bugs