changes to show patterns view