Refine code to use helper button for event editing and ical exports
fix build script