multi widget issue fix and json pretty print in source