css cleaned, few changes on templates, event registering fix