added submit button
limited responses to actual input submissions
whitespace
refactored