[feat][ui] add cancel icon, modularize functions for hiding/showing icons