function for creating text for disabled element