making the instruction layout work also in a popup