add and sort buttons changes