added onclick function and named table columns