fix for bug #155 - prev/next buttons

Updated both the directive and main src files but haven't minimized