delete unless code, fix search on press enter