add application constant class

refactor code