add a boolean to show the frame