intermediate commit. events html missing.
some small bugs fixed. Edit events tab still to be fixed