Added detection of button click and long press. Long press currently resets the analysis. Click will
switch display pages in a later commit.