Added trace to updaeLayout