added case for 'range' input to avoid page break