relayout and add pnotify