delay of function to allow frame set to initialise