move details into popup div. multi element refactor working