fixed bug with show hide buttons