fix styles and add vertical alignment