Fixed selection. began work on popup menu for table