Added last run logic to home page