added cursor up and down