fixed last event not firing
tweaks to button plugin, auto show and hide buttons if first/last page