update URL of CSS
fix ownership check bug
fix sync and query bugs