fixed typo in constant name
implemented autolayout and table cell height calculation