updating viewhandler api