added stretch dimension functionality and modified gui a bit