All of the changes made were to account for the popup changing to a panel. The main reason I copied this file was because we weren't sure if we would revert back to a popup or not and keeping the two files separate made reverting back much easier, plus I wasn't sure how much I would have to change to get it working.