moved alert messages