Fixed searching with no input.
Added routes for statics.
Added actions for statics and refactored the code a bit.