Pre-commit [button main page func]