Improve appointment functionality and added search field