Cleaned up old code and worked on back and previous buttons.