Added the maximum length functionality
Added an extra button on top to make it more obvious