Fixed function to display previous timesheets