added set attribute functions to frame