Built in prototype of chat; optimized performance of sliding menu