Adding support for undecorated stages and modal application