Move up and down function implemented