closeframe action added to function
Design changes