Formatting, UI, and the next and previous buttons work