Design Code change for next and prev