dialog functionality works but need to fix css positioning