add .idea folder
minor optimization to widgets