Refactored the code. Created separated files for utility functions, forms definitions and constants