add GET and POST in history_handler