init frame and board