Switching icons and changing messages in popup window