changed styling of profile and added window dynamic query