Layout fixes

- added softkeyinput,
- dabbled with connecting two tables
- cleaned up code.