Setting up a confirm window before performing of an action