To rename file (change public id), click on small blue edit (rename) icon bellow file name.
This will make name editable. Enter you changes and click on Save (check icon).
Please note: renaming files also changes their URL structure - so remember to update URLs on your pages if you have hard coded them. Also, public id needs to be unique to folder or if you are uploading without folder it must be unique across all accounts.