clean up firearm app definition, add template url constant