added functionality to add/ update a employee.