added styling, alert message, and logic to populate tables