Fixed the problem

Problem is fixed. I also added dragging for the subtext element. I'll
put more comments in later ;)