fix function viewer bug

when a shorter method goes off the screen as one
shifts right to view longer methods’ full signature, there
was an out-of-bound error.
first draft of a data frame viewer