add method layoutNow

add method layoutNow