cleaning code from template app