Add first and last button

Add first and last button
and active display button class use.