code cleanup + drag drop start

code cleaned up
user profile checks for existing username
drag'n drop hierarchy start