fixing permissions and HTML table