Event ui

Edit events, add commitments, edit commitments, live validation, modularization of classes, comments and cleaned code.