first lapa-gui main function