Add icon and fix layout issues.

I redid the InputPanel class's layout using MigLayout. I also removed
the grouping since it wasn't used anywhere and made the code rather
complicated to read.