automatically choosing table that the object is on, checking to make sure table to place on is actually selected