Changes made by Daniel Filipov (Drgreen_bg@yahoo.com).
Edit for templates(activities and activity).