Refactored the code for feeding the Searching functionality of permutas.
Fixed the persisting data from the browser when the user presses F5 key.