init state,only could select file.
using four state to update ui.