added triggers, approve/reject leaves functionality