I'm not sure, what "they open separately from the graphic interface" means. Which part of the code is relevant for your problem?
It is strange, that the callbacks for "open", "new", "save", "load" are doing the same: Get an image file and display it. This looks confusing. But maybe the problem is:
The figure command opens a new figure. Maybe you want to display the image in the same figure. Then use e.g.:
img = imread(fullfile(pathname, licenta1));
to display the image in the axes called "axes1" (it is a pure guess, that there is such an axes).
By the way, "img" looks nicer than "a" as a name of a variable, which contains an image. fullfile is smarter than strcat, because it considers file separators.