Refactoring: 
- created a class Cst to group the constants that are used in this
component.
- created a class Util class and added some commonly used methods. 
- created constants variables in different classes to replace litterals
in the code.