Some refactoring. Changed look and behaviour of youtube url dialog