Auto select text when detail view appears, also added a clear button