add optional path for pagination
fix typo
thy fix for some index buttons