Allow search box value to be set from the constructor

The render method attempts to populate the search box with a value that is never set during initialization.