working on result table clicking