Working on deletefunction, layout and popup of locationcontroller