Added scroll to bottom and fixed memory issue