Adding functionality to log viewer time buttons