Fixed some redirects when clicking UI buttons