add go forward & backward functionality