functionalized state info box and clicks