Return component onClick
Working ajax response for modals