removed btnUrl argument as unused