hide form-footer except on last page, #38
improve performance by only determining index when necessary, single page that is a repeat will show buttons, #38