add tie functionality and styling