had action written in instead of alert