Meteoric ionPopup custom template events

I have a Meteoric ionPopup with custom template (body) containing two buttons (apart from ok and cancel in footer), template is shown well but the events fired on buttons are not caught in the template events handler.

“Take a new photo” and “From your device’s gallery” are two buttons where the events have to handled.