resizable directive fix log statements and text selection