readd previous display button functionality