Moved explore view to new file and some refactorings to simplify the code