modified main page and added popup features