On Button Click, calling panic rest api