reworked the QAction statements, I prefer this way of writing them