added picture count
fixed active display problem
added events and publishing to the html
fixed remove picture
renamed pages, moved templates