updated home page UI with popup and query functionality