Fixed button presses and a number of history related bugs

- fixed history display on iPhone 4 (issue #10)
- new history items now appear at top of list (issue #9 and issue #11)