Cleaned up screen width manipulation in history activity.