Made code framework for button and new frame