add listener and test change layout