created popup for messages and confirmations