1) Close the loop-holes caused due to passing of queries in URL by effectively using sessions.

2) Make the program more modular.