chaiwat update comment function logout