home sort button and function add