* test added for screen orientation
* onclick events added to the API row
* callbacks slightly simplified (a little more DRY)