updated the flow with which frames are updated to ensure the frame always shows what you wanted and prevent them from getting out of sync