updated 'refresh_frames' since inputs got changed from number to text