add padding to input area, and fixed missing variable