added disable nosui functionality to the methods. and fixed bugs