forward\backward handling added