changed styles
fixed error while trying to open not existing file