bug fixes in group and position layers of gui