Added domain name input feature to the Application, refactored the code