added toggle of ui