changed css styles, and added functionality to support 2 input fields