Adds right-click popup for table. Additionally, creates "priority" column in table.