fixes save and previous buttons