Addressed issue where clearing text field would cause text field to resize slightly. Code cleanup.