Changed the methods for browser done/cancel into blocks.

This way I can do the thing I need to do for EKG