Added tableview. Added selection indexes for popup