finished some handler and views. update the API