Fixed some bugs from employeenew and manageframe