Try via binding instead of show/hiding