handle stage resize