add function to create modal structure easyly