Fix #490, do not show 2 insert cell buttons at the bottom of notebook
Use underscore to enhance code readability for isLast()