Selecting category when editing file