refactory VLCApplication