fixed the css and improved the js to handle cases where some text boxes were not filled