closes #716, also moved chat to its own template