Bound buttons in code behind. TODO: Change log to be full equation. TODO: Set up log as menu or swipe on portrait mode.