Adjustments to open_actions function