Add and implement the resize button and add the open button