Fix form bugs when moving back and forth between profile and query results. Replace text links with buttons.