How can the president control bureaucrats? how can congress control them?

They can hire independent, intelligent people to run the government offices. Give them clear guidelines and then stand back and let them do their work.