dynamically change buton size and color on close