fix sorting problem and add statusMsg label