removing "set read only" flag (set unnecessarily)
focusing the right file at the right time