added code for info box and other bug fixes..