adding modal styling and ajax calling for show elements