writting employee controller