Added Layout View
Added sorting functions