Change favorites and history to card layout as well