Code wrapped into immediately calling function. Templates moved out from render functions.
Bug with round borders fixed. Rows height fix.