table functionality working; formatting needed