Turning data_table component into an instantiable class