Fixed previous button, and other minor fixes