#29 add condition to check show prev navigation or not