add next line/previous line functions/buttons