Improve function for browsing cards