add behaviour for left and right arrows