Updated for XE16

Changed Timecard API calls for match GDK 19
Moved openOptionsMenu to onAttachedToWindow