Changed prompts for search.

Used JOptionPanes instead of custom frames
Removed unused classes