implemented proper 'add to calendar' function