Split function list into API, private and callback functions.
Fix event propagation for search-input on the detail layout.