Style changes to the textbox and some minor code movement.