added frame controller, and test frame