display alert if ?edit is used