Added more functionality to make textarea work, still WIP