added function to update buttons tint/state