working on button managment