Added history and favorites feature