Update fossil_app templates

1) After click top navbar, the item status is 'active'
2) Re organize the script blocks