cleanup show_info js function and fix active page onclick