fixed bug with adding button