added view for edit leave