-Added a panel in mainview for creating and event