moved filebrowser maincode to seperate class