get info on button click instead of window open