Cleaned up creation of chat fragment and made animation smooth