Updated markup in template for main block and proper attributes on it.