Showing the table only when applicable