began click event and styled table