created modals and seperated the html elements into php