Added frame object, fixed crash on close