Added callbacks fileSelected and fileRemoved