Add draw box function and draw frame function