added callback method for record class
added toArray for session widget