solved problem with receiving ID from table