bind value to input in search
autofocus input
check for undefined instead